# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=snmp-brute
pkgver=19.830bb0a
pkgrel=7
groups=('blackarch' 'blackarch-cracker')
pkgdesc='SNMP brute force, enumeration, CISCO config downloader and password cracking script.'
arch=('any')
url='https://github.com/SECFORCE/SNMP-Brute'
license=('custom:unknown')
depends=('python' 'python-scapy' 'metasploit' 'net-snmp' 'john')
makedepends=('git')
source=("git+https://github.com/SECFORCE/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 snmpbrute.py "$pkgdir/usr/bin/snmpbrute"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

